<?php echo $this->tinyMce; ?>
<?php echo form_open('cmladmin/pageadd',array('class'=>'form-horizontal form-validate','id'=>'frm'));?>
<fieldset>
    <legend><h4><?php echo $title;?></h4></legend>
    <table class="table-form-submit">
        <tr>
            <td><label for="title">Title *</label></td>
            <td><input type="text" name="title" placeholder="title" class="form-control" required /></td>
        </tr>
         <tr>
            <td></td>
            <td>
                <label class="checkbox">
                    <input name="isshow_title" type="checkbox" checked="checked" /> Show title
                </label>
            </td>
        </tr>
        <tr>
            <td><label for="category_id">Category</label></td>
            <td>
                <?php echo form_dropdown('category_id', $categorylist,array(), 'class="form-control"') ?>
            </td>
        </tr>
        <tr>
            <td><label for="segment">Link/Url *</label></td>
            <td><input type="text" name="segment" placeholder="input url path" class="form-control" required /></td>
        </tr>
        <tr>
            <td><label for="keyword">Meta Keyword</label></td>
            <td><input type="text" name="keyword" placeholder="Meta keyword" class="form-control" /></td>
        </tr>
        <tr>
            <td><label for="description">Description</label></td>
            <td><input type="text" name="description" placeholder="Meta description" class="form-control" /></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <label class="checkbox">
                    <input name="isshow_in_menu" type="checkbox" checked="checked" /> Show in Menu
                </label>
            </td>
        </tr>
        <!--<tr>
            <td></td>
            <td>
                <label class="checkbox">
                    <input name="isexternal_link" type="checkbox" /> Is External Link
                </label>
            </td>
        </tr>
        <tr>
            <td><label for="external_url">External Url</label></td>
            <td><input type="text" name="external_url" placeholder="External Url" class="form-control" /></td>
        </tr>
         <tr>
            <td></td>
            <td>
                <label class="checkbox">
                    <input name="isopen_newwindow" type="checkbox" /> Open New Window
                </label>
            </td>
        </tr>
        -->
         <tr>
            <td><label for="parent_id">Parent</label></td>
            <td>
                <?php echo form_dropdown('parent_id', $pagelist, array(), 'class="form-control"'); ?>
            </td>
        </tr>
        <tr>
            <td><label for="position">Display Order</label></td>
            <td><input type="text" name="position" placeholder="input order number" class="form-control" /></td>
        </tr>
        <tr>
            <td><label for="htmlcontent">Content</label></td>
            <td>
                <textarea id="htmlcontent" name="htmlcontent" rows="15" cols="80" style="width: 80%"></textarea>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <label class="checkbox">
                    <input name="activate" type="checkbox" checked="checked" /> Active
                </label>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <?php echo $form; ?>
            </td>
        </tr>
    </table>
 </fieldset> 

<?php echo form_close();?>